package pl.javarsovia.javarsovia4android.domain;

import java.io.Serializable;

/**
 * @author mgrzechocinski
 * @since 2010-06-12
 */
@SuppressWarnings("serial")
public class Speaker implements Identifiable, Serializable, Comparable<Speaker> {

	private String id;
	private String name;
	private String note;
	private String photoUrl;

	public Speaker(String id) {
		this.id = id;
	}

	@Override
	public String getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public String getNote() {
		return note;
	}

	public String getPhotoUrl() {
		return photoUrl;
	}

	public Speaker name(String name) {
		this.name = name;
		return this;
	}

	public Speaker note(String note) {
		this.note = note;
		return this;
	}

	public Speaker photoUrl(String photoUrl) {
		this.photoUrl = photoUrl;
		return this;
	}

	@Override
	public String toString() {
		return "Speaker [id=" + id + ", name=" + name + "]";
	}

	@Override
	public int compareTo(Speaker other) {
		return name.compareTo(other.name);
	}

}
